package com.bookcloud.java21.chapter12.泛型类层次126;

import java.util.List;

public abstract class GenericRepository<T extends AbstractEntity> {
  public abstract void save(T entity);

  public abstract T findById(Long id);

  public abstract void delete(Long id);

  // 更新
  public abstract void update(Long id, T entity);

  // 查找所有
  public abstract List<T> findAll();
}
